import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import {default as api} from './plugins/api'
import "./plugins/permission";

Vue.config.productionTip = false;//不提示生产信息
import '@/assets/font_icon/iconfont.css';    // 引用 iconfont.css

// 全局引入并注册
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

import vuetimeline from "@growthbunker/vuetimeline";
Vue.use(vuetimeline);

import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'O3Wd4CL2UysWfq8AoCsR57SzA9dfjeis'
})

import {hasPermission} from "./plugins/hasPermission";
Vue.prototype.hasRole = hasPermission

import popout from '@/components/popout_dialog/index' //弹框组件
Vue.component('popout', popout);

import sysTable from "@/components/table/index"; //表格组件
Vue.component('sysTable', sysTable);

import VueUeditorWrap from '@/components/Ueditor/vue-ueditor-wrap'
Vue.component('vue-ueditor-wrap', VueUeditorWrap);

import Tinymce from '@/components/Tinymce/Index'
Vue.component('Tinymce', Tinymce);
Vue.prototype.$eventBus = new Vue();

import dataV from '@jiaminghi/data-view'
Vue.use(dataV)

import VueAwesomeSwiper from 'vue-awesome-swiper';
Vue.use(VueAwesomeSwiper)
import 'swiper/css/swiper.css'

import fullscreen from 'vue-fullscreen'
Vue.use(fullscreen)

import * as echarts from 'echarts' //引入echarts
Vue.prototype.$echarts = echarts //引入组件
import 'echarts-gl';

Vue.prototype.$http = api;
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount("#app");
